package ext.tianma.model;

@SuppressWarnings({"cast", "deprecation", "unchecked"})
public abstract class _TMECOITEMModel extends ext.tianma.model.TMObjectModel implements java.io.Externalizable {
   static final long serialVersionUID = 1;

   static final java.lang.String RESOURCE = "ext.tianma.model.modelResource";
   static final java.lang.String CLASSNAME = TMECOITEMModel.class.getName();

   /**
    * ECO对象
    *
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECOREF = "ECORef";
   wt.fc.ObjectReference ECORef;
   /**
    * ECO对象
    *
    * @see ext.tianma.model.TMECOITEMModel
    */
   public wt.fc.ObjectReference getECORef() {
      return ECORef;
   }
   /**
    * ECO对象
    *
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECORef(wt.fc.ObjectReference ECORef) throws wt.util.WTPropertyVetoException {
      ECORefValidate(ECORef);
      this.ECORef = ECORef;
   }
   void ECORefValidate(wt.fc.ObjectReference ECORef) throws wt.util.WTPropertyVetoException {
      if (ECORef == null)
         throw new wt.util.WTPropertyVetoException("wt.fc.fcResource", wt.fc.fcResource.REQUIRED_ATTRIBUTE,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECORef") },
               new java.beans.PropertyChangeEvent(this, "ECORef", this.ECORef, ECORef));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECONUMBER = "ECONumber";
   static int ECONUMBER_UPPER_LIMIT = -1;
   java.lang.String ECONumber;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECONumber() {
      return ECONumber;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECONumber(java.lang.String ECONumber) throws wt.util.WTPropertyVetoException {
      ECONumberValidate(ECONumber);
      this.ECONumber = ECONumber;
   }
   void ECONumberValidate(java.lang.String ECONumber) throws wt.util.WTPropertyVetoException {
      if (ECONumber == null || ECONumber.trim().length() == 0)
         throw new wt.util.WTPropertyVetoException("wt.fc.fcResource", wt.fc.fcResource.REQUIRED_ATTRIBUTE,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECONumber") },
               new java.beans.PropertyChangeEvent(this, "ECONumber", this.ECONumber, ECONumber));
      if (ECONUMBER_UPPER_LIMIT < 1) {
         try { ECONUMBER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECONumber").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECONUMBER_UPPER_LIMIT = 500; }
      }
      if (ECONumber != null && !wt.fc.PersistenceHelper.checkStoredLength(ECONumber.toString(), ECONUMBER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECONumber"), java.lang.String.valueOf(java.lang.Math.min(ECONUMBER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECONumber", this.ECONumber, ECONumber));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECOOPERATING_TYPE = "ECOOperatingType";
   static int ECOOPERATING_TYPE_UPPER_LIMIT = -1;
   java.lang.String ECOOperatingType;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECOOperatingType() {
      return ECOOperatingType;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECOOperatingType(java.lang.String ECOOperatingType) throws wt.util.WTPropertyVetoException {
      ECOOperatingTypeValidate(ECOOperatingType);
      this.ECOOperatingType = ECOOperatingType;
   }
   void ECOOperatingTypeValidate(java.lang.String ECOOperatingType) throws wt.util.WTPropertyVetoException {
      if (ECOOperatingType == null || ECOOperatingType.trim().length() == 0)
         throw new wt.util.WTPropertyVetoException("wt.fc.fcResource", wt.fc.fcResource.REQUIRED_ATTRIBUTE,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECOOperatingType") },
               new java.beans.PropertyChangeEvent(this, "ECOOperatingType", this.ECOOperatingType, ECOOperatingType));
      if (ECOOPERATING_TYPE_UPPER_LIMIT < 1) {
         try { ECOOPERATING_TYPE_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECOOperatingType").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECOOPERATING_TYPE_UPPER_LIMIT = 5000; }
      }
      if (ECOOperatingType != null && !wt.fc.PersistenceHelper.checkStoredLength(ECOOperatingType.toString(), ECOOPERATING_TYPE_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECOOperatingType"), java.lang.String.valueOf(java.lang.Math.min(ECOOPERATING_TYPE_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECOOperatingType", this.ECOOperatingType, ECOOperatingType));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECOSTATUS = "ECOStatus";
   static int ECOSTATUS_UPPER_LIMIT = -1;
   java.lang.String ECOStatus;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECOStatus() {
      return ECOStatus;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECOStatus(java.lang.String ECOStatus) throws wt.util.WTPropertyVetoException {
      ECOStatusValidate(ECOStatus);
      this.ECOStatus = ECOStatus;
   }
   void ECOStatusValidate(java.lang.String ECOStatus) throws wt.util.WTPropertyVetoException {
      if (ECOSTATUS_UPPER_LIMIT < 1) {
         try { ECOSTATUS_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECOStatus").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECOSTATUS_UPPER_LIMIT = 500; }
      }
      if (ECOStatus != null && !wt.fc.PersistenceHelper.checkStoredLength(ECOStatus.toString(), ECOSTATUS_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECOStatus"), java.lang.String.valueOf(java.lang.Math.min(ECOSTATUS_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECOStatus", this.ECOStatus, ECOStatus));
   }

   /**
    * ECO受影响对象
    *
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECOAFFECTED_REF = "ECOAffectedRef";
   wt.fc.ObjectReference ECOAffectedRef;
   /**
    * ECO受影响对象
    *
    * @see ext.tianma.model.TMECOITEMModel
    */
   public wt.fc.ObjectReference getECOAffectedRef() {
      return ECOAffectedRef;
   }
   /**
    * ECO受影响对象
    *
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECOAffectedRef(wt.fc.ObjectReference ECOAffectedRef) throws wt.util.WTPropertyVetoException {
      ECOAffectedRefValidate(ECOAffectedRef);
      this.ECOAffectedRef = ECOAffectedRef;
   }
   void ECOAffectedRefValidate(wt.fc.ObjectReference ECOAffectedRef) throws wt.util.WTPropertyVetoException {
      if (ECOAffectedRef == null)
         throw new wt.util.WTPropertyVetoException("wt.fc.fcResource", wt.fc.fcResource.REQUIRED_ATTRIBUTE,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECOAffectedRef") },
               new java.beans.PropertyChangeEvent(this, "ECOAffectedRef", this.ECOAffectedRef, ECOAffectedRef));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECOVIEW = "ECOView";
   static int ECOVIEW_UPPER_LIMIT = -1;
   java.lang.String ECOView;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECOView() {
      return ECOView;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECOView(java.lang.String ECOView) throws wt.util.WTPropertyVetoException {
      ECOViewValidate(ECOView);
      this.ECOView = ECOView;
   }
   void ECOViewValidate(java.lang.String ECOView) throws wt.util.WTPropertyVetoException {
      if (ECOVIEW_UPPER_LIMIT < 1) {
         try { ECOVIEW_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECOView").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECOVIEW_UPPER_LIMIT = 500; }
      }
      if (ECOView != null && !wt.fc.PersistenceHelper.checkStoredLength(ECOView.toString(), ECOVIEW_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECOView"), java.lang.String.valueOf(java.lang.Math.min(ECOVIEW_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECOView", this.ECOView, ECOView));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECOPART_NUMBER = "ECOPartNumber";
   static int ECOPART_NUMBER_UPPER_LIMIT = -1;
   java.lang.String ECOPartNumber;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECOPartNumber() {
      return ECOPartNumber;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECOPartNumber(java.lang.String ECOPartNumber) throws wt.util.WTPropertyVetoException {
      ECOPartNumberValidate(ECOPartNumber);
      this.ECOPartNumber = ECOPartNumber;
   }
   void ECOPartNumberValidate(java.lang.String ECOPartNumber) throws wt.util.WTPropertyVetoException {
      if (ECOPartNumber == null || ECOPartNumber.trim().length() == 0)
         throw new wt.util.WTPropertyVetoException("wt.fc.fcResource", wt.fc.fcResource.REQUIRED_ATTRIBUTE,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECOPartNumber") },
               new java.beans.PropertyChangeEvent(this, "ECOPartNumber", this.ECOPartNumber, ECOPartNumber));
      if (ECOPART_NUMBER_UPPER_LIMIT < 1) {
         try { ECOPART_NUMBER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECOPartNumber").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECOPART_NUMBER_UPPER_LIMIT = 500; }
      }
      if (ECOPartNumber != null && !wt.fc.PersistenceHelper.checkStoredLength(ECOPartNumber.toString(), ECOPART_NUMBER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECOPartNumber"), java.lang.String.valueOf(java.lang.Math.min(ECOPART_NUMBER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECOPartNumber", this.ECOPartNumber, ECOPartNumber));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECODOSAGE = "ECODosage";
   static int ECODOSAGE_UPPER_LIMIT = -1;
   java.lang.String ECODosage;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECODosage() {
      return ECODosage;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECODosage(java.lang.String ECODosage) throws wt.util.WTPropertyVetoException {
      ECODosageValidate(ECODosage);
      this.ECODosage = ECODosage;
   }
   void ECODosageValidate(java.lang.String ECODosage) throws wt.util.WTPropertyVetoException {
      if (ECODOSAGE_UPPER_LIMIT < 1) {
         try { ECODOSAGE_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECODosage").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECODOSAGE_UPPER_LIMIT = 200; }
      }
      if (ECODosage != null && !wt.fc.PersistenceHelper.checkStoredLength(ECODosage.toString(), ECODOSAGE_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECODosage"), java.lang.String.valueOf(java.lang.Math.min(ECODOSAGE_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECODosage", this.ECODosage, ECODosage));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECOLINE_NUMBER = "ECOLineNumber";
   static int ECOLINE_NUMBER_UPPER_LIMIT = -1;
   java.lang.String ECOLineNumber;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECOLineNumber() {
      return ECOLineNumber;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECOLineNumber(java.lang.String ECOLineNumber) throws wt.util.WTPropertyVetoException {
      ECOLineNumberValidate(ECOLineNumber);
      this.ECOLineNumber = ECOLineNumber;
   }
   void ECOLineNumberValidate(java.lang.String ECOLineNumber) throws wt.util.WTPropertyVetoException {
      if (ECOLINE_NUMBER_UPPER_LIMIT < 1) {
         try { ECOLINE_NUMBER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECOLineNumber").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECOLINE_NUMBER_UPPER_LIMIT = 200; }
      }
      if (ECOLineNumber != null && !wt.fc.PersistenceHelper.checkStoredLength(ECOLineNumber.toString(), ECOLINE_NUMBER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECOLineNumber"), java.lang.String.valueOf(java.lang.Math.min(ECOLINE_NUMBER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECOLineNumber", this.ECOLineNumber, ECOLineNumber));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECONEW_PART_NUMBER = "ECONewPartNumber";
   static int ECONEW_PART_NUMBER_UPPER_LIMIT = -1;
   java.lang.String ECONewPartNumber;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECONewPartNumber() {
      return ECONewPartNumber;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECONewPartNumber(java.lang.String ECONewPartNumber) throws wt.util.WTPropertyVetoException {
      ECONewPartNumberValidate(ECONewPartNumber);
      this.ECONewPartNumber = ECONewPartNumber;
   }
   void ECONewPartNumberValidate(java.lang.String ECONewPartNumber) throws wt.util.WTPropertyVetoException {
      if (ECONEW_PART_NUMBER_UPPER_LIMIT < 1) {
         try { ECONEW_PART_NUMBER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECONewPartNumber").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECONEW_PART_NUMBER_UPPER_LIMIT = 500; }
      }
      if (ECONewPartNumber != null && !wt.fc.PersistenceHelper.checkStoredLength(ECONewPartNumber.toString(), ECONEW_PART_NUMBER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECONewPartNumber"), java.lang.String.valueOf(java.lang.Math.min(ECONEW_PART_NUMBER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECONewPartNumber", this.ECONewPartNumber, ECONewPartNumber));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECONEW_DOSAGE = "ECONewDosage";
   static int ECONEW_DOSAGE_UPPER_LIMIT = -1;
   java.lang.String ECONewDosage;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECONewDosage() {
      return ECONewDosage;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECONewDosage(java.lang.String ECONewDosage) throws wt.util.WTPropertyVetoException {
      ECONewDosageValidate(ECONewDosage);
      this.ECONewDosage = ECONewDosage;
   }
   void ECONewDosageValidate(java.lang.String ECONewDosage) throws wt.util.WTPropertyVetoException {
      if (ECONEW_DOSAGE_UPPER_LIMIT < 1) {
         try { ECONEW_DOSAGE_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECONewDosage").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECONEW_DOSAGE_UPPER_LIMIT = 200; }
      }
      if (ECONewDosage != null && !wt.fc.PersistenceHelper.checkStoredLength(ECONewDosage.toString(), ECONEW_DOSAGE_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECONewDosage"), java.lang.String.valueOf(java.lang.Math.min(ECONEW_DOSAGE_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECONewDosage", this.ECONewDosage, ECONewDosage));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECONEW_LINE_NUMBER = "ECONewLineNumber";
   static int ECONEW_LINE_NUMBER_UPPER_LIMIT = -1;
   java.lang.String ECONewLineNumber;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECONewLineNumber() {
      return ECONewLineNumber;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECONewLineNumber(java.lang.String ECONewLineNumber) throws wt.util.WTPropertyVetoException {
      ECONewLineNumberValidate(ECONewLineNumber);
      this.ECONewLineNumber = ECONewLineNumber;
   }
   void ECONewLineNumberValidate(java.lang.String ECONewLineNumber) throws wt.util.WTPropertyVetoException {
      if (ECONEW_LINE_NUMBER_UPPER_LIMIT < 1) {
         try { ECONEW_LINE_NUMBER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECONewLineNumber").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECONEW_LINE_NUMBER_UPPER_LIMIT = 200; }
      }
      if (ECONewLineNumber != null && !wt.fc.PersistenceHelper.checkStoredLength(ECONewLineNumber.toString(), ECONEW_LINE_NUMBER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECONewLineNumber"), java.lang.String.valueOf(java.lang.Math.min(ECONEW_LINE_NUMBER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECONewLineNumber", this.ECONewLineNumber, ECONewLineNumber));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECOSUBSTITUTE_NUMBER = "ECOSubstituteNumber";
   static int ECOSUBSTITUTE_NUMBER_UPPER_LIMIT = -1;
   java.lang.String ECOSubstituteNumber;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECOSubstituteNumber() {
      return ECOSubstituteNumber;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECOSubstituteNumber(java.lang.String ECOSubstituteNumber) throws wt.util.WTPropertyVetoException {
      ECOSubstituteNumberValidate(ECOSubstituteNumber);
      this.ECOSubstituteNumber = ECOSubstituteNumber;
   }
   void ECOSubstituteNumberValidate(java.lang.String ECOSubstituteNumber) throws wt.util.WTPropertyVetoException {
      if (ECOSUBSTITUTE_NUMBER_UPPER_LIMIT < 1) {
         try { ECOSUBSTITUTE_NUMBER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECOSubstituteNumber").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECOSUBSTITUTE_NUMBER_UPPER_LIMIT = 500; }
      }
      if (ECOSubstituteNumber != null && !wt.fc.PersistenceHelper.checkStoredLength(ECOSubstituteNumber.toString(), ECOSUBSTITUTE_NUMBER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECOSubstituteNumber"), java.lang.String.valueOf(java.lang.Math.min(ECOSUBSTITUTE_NUMBER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECOSubstituteNumber", this.ECOSubstituteNumber, ECOSubstituteNumber));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECOSUBSTITUTE_LINE_NMUBER = "ECOSubstituteLineNmuber";
   static int ECOSUBSTITUTE_LINE_NMUBER_UPPER_LIMIT = -1;
   java.lang.String ECOSubstituteLineNmuber;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECOSubstituteLineNmuber() {
      return ECOSubstituteLineNmuber;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECOSubstituteLineNmuber(java.lang.String ECOSubstituteLineNmuber) throws wt.util.WTPropertyVetoException {
      ECOSubstituteLineNmuberValidate(ECOSubstituteLineNmuber);
      this.ECOSubstituteLineNmuber = ECOSubstituteLineNmuber;
   }
   void ECOSubstituteLineNmuberValidate(java.lang.String ECOSubstituteLineNmuber) throws wt.util.WTPropertyVetoException {
      if (ECOSUBSTITUTE_LINE_NMUBER_UPPER_LIMIT < 1) {
         try { ECOSUBSTITUTE_LINE_NMUBER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECOSubstituteLineNmuber").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECOSUBSTITUTE_LINE_NMUBER_UPPER_LIMIT = 200; }
      }
      if (ECOSubstituteLineNmuber != null && !wt.fc.PersistenceHelper.checkStoredLength(ECOSubstituteLineNmuber.toString(), ECOSUBSTITUTE_LINE_NMUBER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECOSubstituteLineNmuber"), java.lang.String.valueOf(java.lang.Math.min(ECOSUBSTITUTE_LINE_NMUBER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECOSubstituteLineNmuber", this.ECOSubstituteLineNmuber, ECOSubstituteLineNmuber));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECOSUBSTITUTE_DOSAGE = "ECOSubstituteDosage";
   static int ECOSUBSTITUTE_DOSAGE_UPPER_LIMIT = -1;
   java.lang.String ECOSubstituteDosage;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECOSubstituteDosage() {
      return ECOSubstituteDosage;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECOSubstituteDosage(java.lang.String ECOSubstituteDosage) throws wt.util.WTPropertyVetoException {
      ECOSubstituteDosageValidate(ECOSubstituteDosage);
      this.ECOSubstituteDosage = ECOSubstituteDosage;
   }
   void ECOSubstituteDosageValidate(java.lang.String ECOSubstituteDosage) throws wt.util.WTPropertyVetoException {
      if (ECOSUBSTITUTE_DOSAGE_UPPER_LIMIT < 1) {
         try { ECOSUBSTITUTE_DOSAGE_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECOSubstituteDosage").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECOSUBSTITUTE_DOSAGE_UPPER_LIMIT = 200; }
      }
      if (ECOSubstituteDosage != null && !wt.fc.PersistenceHelper.checkStoredLength(ECOSubstituteDosage.toString(), ECOSUBSTITUTE_DOSAGE_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECOSubstituteDosage"), java.lang.String.valueOf(java.lang.Math.min(ECOSUBSTITUTE_DOSAGE_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECOSubstituteDosage", this.ECOSubstituteDosage, ECOSubstituteDosage));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECONEW_SUBSTITUTE_NUMBER = "ECONewSubstituteNumber";
   static int ECONEW_SUBSTITUTE_NUMBER_UPPER_LIMIT = -1;
   java.lang.String ECONewSubstituteNumber;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECONewSubstituteNumber() {
      return ECONewSubstituteNumber;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECONewSubstituteNumber(java.lang.String ECONewSubstituteNumber) throws wt.util.WTPropertyVetoException {
      ECONewSubstituteNumberValidate(ECONewSubstituteNumber);
      this.ECONewSubstituteNumber = ECONewSubstituteNumber;
   }
   void ECONewSubstituteNumberValidate(java.lang.String ECONewSubstituteNumber) throws wt.util.WTPropertyVetoException {
      if (ECONEW_SUBSTITUTE_NUMBER_UPPER_LIMIT < 1) {
         try { ECONEW_SUBSTITUTE_NUMBER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECONewSubstituteNumber").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECONEW_SUBSTITUTE_NUMBER_UPPER_LIMIT = 500; }
      }
      if (ECONewSubstituteNumber != null && !wt.fc.PersistenceHelper.checkStoredLength(ECONewSubstituteNumber.toString(), ECONEW_SUBSTITUTE_NUMBER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECONewSubstituteNumber"), java.lang.String.valueOf(java.lang.Math.min(ECONEW_SUBSTITUTE_NUMBER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECONewSubstituteNumber", this.ECONewSubstituteNumber, ECONewSubstituteNumber));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECONEW_SUBSTITUTE_LINE_NMUBER = "ECONewSubstituteLineNmuber";
   static int ECONEW_SUBSTITUTE_LINE_NMUBER_UPPER_LIMIT = -1;
   java.lang.String ECONewSubstituteLineNmuber;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECONewSubstituteLineNmuber() {
      return ECONewSubstituteLineNmuber;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECONewSubstituteLineNmuber(java.lang.String ECONewSubstituteLineNmuber) throws wt.util.WTPropertyVetoException {
      ECONewSubstituteLineNmuberValidate(ECONewSubstituteLineNmuber);
      this.ECONewSubstituteLineNmuber = ECONewSubstituteLineNmuber;
   }
   void ECONewSubstituteLineNmuberValidate(java.lang.String ECONewSubstituteLineNmuber) throws wt.util.WTPropertyVetoException {
      if (ECONEW_SUBSTITUTE_LINE_NMUBER_UPPER_LIMIT < 1) {
         try { ECONEW_SUBSTITUTE_LINE_NMUBER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECONewSubstituteLineNmuber").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECONEW_SUBSTITUTE_LINE_NMUBER_UPPER_LIMIT = 200; }
      }
      if (ECONewSubstituteLineNmuber != null && !wt.fc.PersistenceHelper.checkStoredLength(ECONewSubstituteLineNmuber.toString(), ECONEW_SUBSTITUTE_LINE_NMUBER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECONewSubstituteLineNmuber"), java.lang.String.valueOf(java.lang.Math.min(ECONEW_SUBSTITUTE_LINE_NMUBER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECONewSubstituteLineNmuber", this.ECONewSubstituteLineNmuber, ECONewSubstituteLineNmuber));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String ECONEW_SUBSTITUTE_DOSAGE = "ECONewSubstituteDosage";
   static int ECONEW_SUBSTITUTE_DOSAGE_UPPER_LIMIT = -1;
   java.lang.String ECONewSubstituteDosage;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getECONewSubstituteDosage() {
      return ECONewSubstituteDosage;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setECONewSubstituteDosage(java.lang.String ECONewSubstituteDosage) throws wt.util.WTPropertyVetoException {
      ECONewSubstituteDosageValidate(ECONewSubstituteDosage);
      this.ECONewSubstituteDosage = ECONewSubstituteDosage;
   }
   void ECONewSubstituteDosageValidate(java.lang.String ECONewSubstituteDosage) throws wt.util.WTPropertyVetoException {
      if (ECONEW_SUBSTITUTE_DOSAGE_UPPER_LIMIT < 1) {
         try { ECONEW_SUBSTITUTE_DOSAGE_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("ECONewSubstituteDosage").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { ECONEW_SUBSTITUTE_DOSAGE_UPPER_LIMIT = 200; }
      }
      if (ECONewSubstituteDosage != null && !wt.fc.PersistenceHelper.checkStoredLength(ECONewSubstituteDosage.toString(), ECONEW_SUBSTITUTE_DOSAGE_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "ECONewSubstituteDosage"), java.lang.String.valueOf(java.lang.Math.min(ECONEW_SUBSTITUTE_DOSAGE_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "ECONewSubstituteDosage", this.ECONewSubstituteDosage, ECONewSubstituteDosage));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String STR1 = "str1";
   static int STR1_UPPER_LIMIT = -1;
   java.lang.String str1;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getStr1() {
      return str1;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setStr1(java.lang.String str1) throws wt.util.WTPropertyVetoException {
      str1Validate(str1);
      this.str1 = str1;
   }
   void str1Validate(java.lang.String str1) throws wt.util.WTPropertyVetoException {
      if (STR1_UPPER_LIMIT < 1) {
         try { STR1_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("str1").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { STR1_UPPER_LIMIT = 200; }
      }
      if (str1 != null && !wt.fc.PersistenceHelper.checkStoredLength(str1.toString(), STR1_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "str1"), java.lang.String.valueOf(java.lang.Math.min(STR1_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "str1", this.str1, str1));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String STR2 = "str2";
   static int STR2_UPPER_LIMIT = -1;
   java.lang.String str2;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getStr2() {
      return str2;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setStr2(java.lang.String str2) throws wt.util.WTPropertyVetoException {
      str2Validate(str2);
      this.str2 = str2;
   }
   void str2Validate(java.lang.String str2) throws wt.util.WTPropertyVetoException {
      if (STR2_UPPER_LIMIT < 1) {
         try { STR2_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("str2").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { STR2_UPPER_LIMIT = 200; }
      }
      if (str2 != null && !wt.fc.PersistenceHelper.checkStoredLength(str2.toString(), STR2_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "str2"), java.lang.String.valueOf(java.lang.Math.min(STR2_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "str2", this.str2, str2));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String STR3 = "str3";
   static int STR3_UPPER_LIMIT = -1;
   java.lang.String str3;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getStr3() {
      return str3;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setStr3(java.lang.String str3) throws wt.util.WTPropertyVetoException {
      str3Validate(str3);
      this.str3 = str3;
   }
   void str3Validate(java.lang.String str3) throws wt.util.WTPropertyVetoException {
      if (STR3_UPPER_LIMIT < 1) {
         try { STR3_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("str3").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { STR3_UPPER_LIMIT = 200; }
      }
      if (str3 != null && !wt.fc.PersistenceHelper.checkStoredLength(str3.toString(), STR3_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "str3"), java.lang.String.valueOf(java.lang.Math.min(STR3_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "str3", this.str3, str3));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String STR4 = "str4";
   static int STR4_UPPER_LIMIT = -1;
   java.lang.String str4;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getStr4() {
      return str4;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setStr4(java.lang.String str4) throws wt.util.WTPropertyVetoException {
      str4Validate(str4);
      this.str4 = str4;
   }
   void str4Validate(java.lang.String str4) throws wt.util.WTPropertyVetoException {
      if (STR4_UPPER_LIMIT < 1) {
         try { STR4_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("str4").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { STR4_UPPER_LIMIT = 200; }
      }
      if (str4 != null && !wt.fc.PersistenceHelper.checkStoredLength(str4.toString(), STR4_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "str4"), java.lang.String.valueOf(java.lang.Math.min(STR4_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "str4", this.str4, str4));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String STR5 = "str5";
   static int STR5_UPPER_LIMIT = -1;
   java.lang.String str5;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getStr5() {
      return str5;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setStr5(java.lang.String str5) throws wt.util.WTPropertyVetoException {
      str5Validate(str5);
      this.str5 = str5;
   }
   void str5Validate(java.lang.String str5) throws wt.util.WTPropertyVetoException {
      if (STR5_UPPER_LIMIT < 1) {
         try { STR5_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("str5").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { STR5_UPPER_LIMIT = 200; }
      }
      if (str5 != null && !wt.fc.PersistenceHelper.checkStoredLength(str5.toString(), STR5_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "str5"), java.lang.String.valueOf(java.lang.Math.min(STR5_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "str5", this.str5, str5));
   }

   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public static final java.lang.String STR6 = "str6";
   static int STR6_UPPER_LIMIT = -1;
   java.lang.String str6;
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public java.lang.String getStr6() {
      return str6;
   }
   /**
    * @see ext.tianma.model.TMECOITEMModel
    */
   public void setStr6(java.lang.String str6) throws wt.util.WTPropertyVetoException {
      str6Validate(str6);
      this.str6 = str6;
   }
   void str6Validate(java.lang.String str6) throws wt.util.WTPropertyVetoException {
      if (STR6_UPPER_LIMIT < 1) {
         try { STR6_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("str6").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { STR6_UPPER_LIMIT = 200; }
      }
      if (str6 != null && !wt.fc.PersistenceHelper.checkStoredLength(str6.toString(), STR6_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "str6"), java.lang.String.valueOf(java.lang.Math.min(STR6_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "str6", this.str6, str6));
   }

   public java.lang.String getConceptualClassname() {
      return CLASSNAME;
   }

   public wt.introspection.ClassInfo getClassInfo() throws wt.introspection.WTIntrospectionException {
      return wt.introspection.WTIntrospector.getClassInfo(getConceptualClassname());
   }

   public java.lang.String getType() {
      try { return getClassInfo().getDisplayName(); }
      catch (wt.introspection.WTIntrospectionException wte) { return wt.util.WTStringUtilities.tail(getConceptualClassname(), '.'); }
   }

   public static final long EXTERNALIZATION_VERSION_UID = 4563274874873545370L;

   public void writeExternal(java.io.ObjectOutput output) throws java.io.IOException {
      output.writeLong( EXTERNALIZATION_VERSION_UID );

      super.writeExternal( output );

      output.writeObject( ECOAffectedRef );
      output.writeObject( ECODosage );
      output.writeObject( ECOLineNumber );
      output.writeObject( ECONewDosage );
      output.writeObject( ECONewLineNumber );
      output.writeObject( ECONewPartNumber );
      output.writeObject( ECONewSubstituteDosage );
      output.writeObject( ECONewSubstituteLineNmuber );
      output.writeObject( ECONewSubstituteNumber );
      output.writeObject( ECONumber );
      output.writeObject( ECOOperatingType );
      output.writeObject( ECOPartNumber );
      output.writeObject( ECORef );
      output.writeObject( ECOStatus );
      output.writeObject( ECOSubstituteDosage );
      output.writeObject( ECOSubstituteLineNmuber );
      output.writeObject( ECOSubstituteNumber );
      output.writeObject( ECOView );
      output.writeObject( str1 );
      output.writeObject( str2 );
      output.writeObject( str3 );
      output.writeObject( str4 );
      output.writeObject( str5 );
      output.writeObject( str6 );
   }

   protected void super_writeExternal_TMECOITEMModel(java.io.ObjectOutput output) throws java.io.IOException {
      super.writeExternal(output);
   }

   public void readExternal(java.io.ObjectInput input) throws java.io.IOException, java.lang.ClassNotFoundException {
      long readSerialVersionUID = input.readLong();
      readVersion( (ext.tianma.model.TMECOITEMModel) this, input, readSerialVersionUID, false, false );
   }
   protected void super_readExternal_TMECOITEMModel(java.io.ObjectInput input) throws java.io.IOException, java.lang.ClassNotFoundException {
      super.readExternal(input);
   }

   public void writeExternal(wt.pds.PersistentStoreIfc output) throws java.sql.SQLException, wt.pom.DatastoreException {
      super.writeExternal( output );

      output.writeObject( "ECOAffectedRef", ECOAffectedRef, wt.fc.ObjectReference.class, true );
      output.setString( "ECODosage", ECODosage );
      output.setString( "ECOLineNumber", ECOLineNumber );
      output.setString( "ECONewDosage", ECONewDosage );
      output.setString( "ECONewLineNumber", ECONewLineNumber );
      output.setString( "ECONewPartNumber", ECONewPartNumber );
      output.setString( "ECONewSubstituteDosage", ECONewSubstituteDosage );
      output.setString( "ECONewSubstituteLineNmuber", ECONewSubstituteLineNmuber );
      output.setString( "ECONewSubstituteNumber", ECONewSubstituteNumber );
      output.setString( "ECONumber", ECONumber );
      output.setString( "ECOOperatingType", ECOOperatingType );
      output.setString( "ECOPartNumber", ECOPartNumber );
      output.writeObject( "ECORef", ECORef, wt.fc.ObjectReference.class, true );
      output.setString( "ECOStatus", ECOStatus );
      output.setString( "ECOSubstituteDosage", ECOSubstituteDosage );
      output.setString( "ECOSubstituteLineNmuber", ECOSubstituteLineNmuber );
      output.setString( "ECOSubstituteNumber", ECOSubstituteNumber );
      output.setString( "ECOView", ECOView );
      output.setString( "str1", str1 );
      output.setString( "str2", str2 );
      output.setString( "str3", str3 );
      output.setString( "str4", str4 );
      output.setString( "str5", str5 );
      output.setString( "str6", str6 );
   }

   public void readExternal(wt.pds.PersistentRetrieveIfc input) throws java.sql.SQLException, wt.pom.DatastoreException {
      super.readExternal( input );

      ECOAffectedRef = (wt.fc.ObjectReference) input.readObject( "ECOAffectedRef", ECOAffectedRef, wt.fc.ObjectReference.class, true );
      ECODosage = input.getString( "ECODosage" );
      ECOLineNumber = input.getString( "ECOLineNumber" );
      ECONewDosage = input.getString( "ECONewDosage" );
      ECONewLineNumber = input.getString( "ECONewLineNumber" );
      ECONewPartNumber = input.getString( "ECONewPartNumber" );
      ECONewSubstituteDosage = input.getString( "ECONewSubstituteDosage" );
      ECONewSubstituteLineNmuber = input.getString( "ECONewSubstituteLineNmuber" );
      ECONewSubstituteNumber = input.getString( "ECONewSubstituteNumber" );
      ECONumber = input.getString( "ECONumber" );
      ECOOperatingType = input.getString( "ECOOperatingType" );
      ECOPartNumber = input.getString( "ECOPartNumber" );
      ECORef = (wt.fc.ObjectReference) input.readObject( "ECORef", ECORef, wt.fc.ObjectReference.class, true );
      ECOStatus = input.getString( "ECOStatus" );
      ECOSubstituteDosage = input.getString( "ECOSubstituteDosage" );
      ECOSubstituteLineNmuber = input.getString( "ECOSubstituteLineNmuber" );
      ECOSubstituteNumber = input.getString( "ECOSubstituteNumber" );
      ECOView = input.getString( "ECOView" );
      str1 = input.getString( "str1" );
      str2 = input.getString( "str2" );
      str3 = input.getString( "str3" );
      str4 = input.getString( "str4" );
      str5 = input.getString( "str5" );
      str6 = input.getString( "str6" );
   }

   boolean readVersion4563274874873545370L( java.io.ObjectInput input, long readSerialVersionUID, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      if ( !superDone )
         super.readExternal( input );

      ECOAffectedRef = (wt.fc.ObjectReference) input.readObject();
      ECODosage = (java.lang.String) input.readObject();
      ECOLineNumber = (java.lang.String) input.readObject();
      ECONewDosage = (java.lang.String) input.readObject();
      ECONewLineNumber = (java.lang.String) input.readObject();
      ECONewPartNumber = (java.lang.String) input.readObject();
      ECONewSubstituteDosage = (java.lang.String) input.readObject();
      ECONewSubstituteLineNmuber = (java.lang.String) input.readObject();
      ECONewSubstituteNumber = (java.lang.String) input.readObject();
      ECONumber = (java.lang.String) input.readObject();
      ECOOperatingType = (java.lang.String) input.readObject();
      ECOPartNumber = (java.lang.String) input.readObject();
      ECORef = (wt.fc.ObjectReference) input.readObject();
      ECOStatus = (java.lang.String) input.readObject();
      ECOSubstituteDosage = (java.lang.String) input.readObject();
      ECOSubstituteLineNmuber = (java.lang.String) input.readObject();
      ECOSubstituteNumber = (java.lang.String) input.readObject();
      ECOView = (java.lang.String) input.readObject();
      str1 = (java.lang.String) input.readObject();
      str2 = (java.lang.String) input.readObject();
      str3 = (java.lang.String) input.readObject();
      str4 = (java.lang.String) input.readObject();
      str5 = (java.lang.String) input.readObject();
      str6 = (java.lang.String) input.readObject();
      return true;
   }

   protected boolean readVersion( TMECOITEMModel thisObject, java.io.ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      boolean success = true;

      if ( readSerialVersionUID == EXTERNALIZATION_VERSION_UID )
         return readVersion4563274874873545370L( input, readSerialVersionUID, superDone );
      else
         success = readOldVersion( input, readSerialVersionUID, passThrough, superDone );

      if (input instanceof wt.pds.PDSObjectInput)
         wt.fc.EvolvableHelper.requestRewriteOfEvolvedBlobbedObject();

      return success;
   }
   protected boolean super_readVersion_TMECOITEMModel( _TMECOITEMModel thisObject, java.io.ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      return super.readVersion(thisObject, input, readSerialVersionUID, passThrough, superDone);
   }

   boolean readOldVersion( java.io.ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      throw new java.io.InvalidClassException(CLASSNAME, "Local class not compatible: stream classdesc externalizationVersionUID="+readSerialVersionUID+" local class externalizationVersionUID="+EXTERNALIZATION_VERSION_UID);
   }
}
